package com.ibeeking.found.common.enums.cs;


/**
 * 客服台受理方式
 */
public enum CustomerSupportOrderAcceptMethodEnum {


    NOW(1, "现场处理"),
    WAIT(2, "二线处理"),;


    private Integer code;

    private String name;

    public Integer getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    CustomerSupportOrderAcceptMethodEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static CustomerSupportOrderAcceptMethodEnum getEnum(Integer code){
        for (CustomerSupportOrderAcceptMethodEnum enums : values()){
            if(enums.code.equals(code)){
                return enums;
            }
        }
        return null;
    }

}
